home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 12 - 1996 / 12.10 Oct 96 / GettingStarted / layoutNoPanel.java < prev    next >
Encoding:
Java Source  |  1996-09-11  |  386 b   |  19 lines  |  [TEXT/R*ch]

  1.  
  2. import java.awt.*;
  3.  
  4. public class layoutNoPanel extends java.applet.Applet
  5. {
  6.     public layoutNoPanel()
  7.     {
  8.         setLayout( new BorderLayout() );
  9.         
  10.         add( "North", new Label( "Enter your name:" ) );
  11.         add( "Center", 
  12.                 new TextField("<Your name here>", 30) );
  13.         add( "South", new Button( "Eeny" ) );
  14.         add( "East", new Button( "Meeny" ) );
  15.         add( "West", new Button( "Miney-Moe" ) );
  16.     }
  17. }
  18.  
  19.